package com.ruoyi.reservationmanagement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.reservationmanagement.mapper.ReservationmanagementMapper;
import com.ruoyi.reservationmanagement.domain.Reservationmanagement;
import com.ruoyi.reservationmanagement.service.IReservationmanagementService;

/**
 * 预约管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
@Service
public class ReservationmanagementServiceImpl implements IReservationmanagementService 
{
    @Autowired
    private ReservationmanagementMapper reservationmanagementMapper;

    /**
     * 查询预约管理
     * 
     * @param reservationId 预约管理主键
     * @return 预约管理
     */
    @Override
    public Reservationmanagement selectReservationmanagementByReservationId(Long reservationId)
    {
        return reservationmanagementMapper.selectReservationmanagementByReservationId(reservationId);
    }

    /**
     * 查询预约管理列表
     * 
     * @param reservationmanagement 预约管理
     * @return 预约管理
     */
    @Override
    public List<Reservationmanagement> selectReservationmanagementList(Reservationmanagement reservationmanagement)
    {
        return reservationmanagementMapper.selectReservationmanagementList(reservationmanagement);
    }

    /**
     * 新增预约管理
     * 
     * @param reservationmanagement 预约管理
     * @return 结果
     */
    @Override
    public int insertReservationmanagement(Reservationmanagement reservationmanagement)
    {
        return reservationmanagementMapper.insertReservationmanagement(reservationmanagement);
    }

    /**
     * 修改预约管理
     * 
     * @param reservationmanagement 预约管理
     * @return 结果
     */
    @Override
    public int updateReservationmanagement(Reservationmanagement reservationmanagement)
    {
        return reservationmanagementMapper.updateReservationmanagement(reservationmanagement);
    }

    /**
     * 批量删除预约管理
     * 
     * @param reservationIds 需要删除的预约管理主键
     * @return 结果
     */
    @Override
    public int deleteReservationmanagementByReservationIds(Long[] reservationIds)
    {
        return reservationmanagementMapper.deleteReservationmanagementByReservationIds(reservationIds);
    }

    /**
     * 删除预约管理信息
     * 
     * @param reservationId 预约管理主键
     * @return 结果
     */
    @Override
    public int deleteReservationmanagementByReservationId(Long reservationId)
    {
        return reservationmanagementMapper.deleteReservationmanagementByReservationId(reservationId);
    }
}
